package ooday01;

public class Car {
    String brand;
    String color;
    double price;
    Car(){

    }
    Car(String brand,String color,double price){
        this.brand =brand;
        this.color =color;
        this.price =price;
    }
    void start(){
        System.out.println(brand+"牌子的"+color+"色的车开动了!价格是:"+price+"万元！");
    }
    void run(){
        System.out.println(brand+"牌子的"+color+"色的车跑起来了!价格是:"+price+"万元！");
    }
    void stop(){
        System.out.println(brand+"牌子的"+color+"色的车停止了!价格是:"+price+"万元！");
    }
}
